<template>
	<view style="padding: 20rpx;background-color: #fff;">
		<u--form labelWidth='80' labelPosition="left" :model="yuZhiInfo" :rules="rules" ref="uForm">
			<u-form-item label="预支金额" prop="yuZhiInfo.advanceMoney" borderBottom ref="item1">
				<u--input v-model="yuZhiInfo.advanceMoney" placeholder="输入预支金额" border="none"></u--input>

			</u-form-item>
			<u-form-item label="预支原因" prop="yuZhiInfo.advanceReason" borderBottom ref="item1">
				<u--textarea v-model="yuZhiInfo.advanceReason" placeholder="输入预支原因" border="none"></u--textarea>
			</u-form-item>
			<u-collapse>
				<u-collapse-item title="银行卡" name="Docs guide">
					<u--form labelWidth='80' labelPosition="left" :model="yinhangInfo" ref="uForm1">
						<u-form-item label="户主姓名" prop="yinhangInfo.bankAccountName" borderBottom ref="item2">
							{{yinhangInfo.bankAccountName}}
						</u-form-item>
						<u-form-item label="银行卡号" prop="yinhangInfo.bankCardNo" borderBottom ref="item2">
							{{yinhangInfo.bankCardNo}}
						</u-form-item>
						<u-form-item label="开户银行" prop="yinhangInfo.banCardName" borderBottom ref="item2">
							{{yinhangInfo.banCardName}}
						</u-form-item>
						<u-form-item label="开户分行" prop="yinhangInfo.openingBank" borderBottom ref="item2">
							{{yinhangInfo.openingBank}}
						</u-form-item>
						<!-- <u-form-item label="卡类型" prop="yinhangInfo.bankAccountName" borderBottom ref="item2">
							{{yinhangInfo.bankAccountName}}
						</u-form-item> -->
					</u--form>
				</u-collapse-item>

			</u-collapse>
		</u--form>
		<view style="margin-top: 40rpx;">
			<text style="font-size: 30rpx;">状态</text>
		</view>
		
	</view>
</template>

<script>
	import {bankCardInfo} from '@/api/xinziqingkuang/xinziqingkuang.js'
	export default {
		data() {
			return {
				yinhangInfo:{},
				yuZhiInfo:{}
			}
		},
		onLoad(options) {
			this.yuZhiInfo = JSON.parse(decodeURIComponent(options.yuZhiDetailsInfo))
			console.log(this.yuZhiInfo)
		},
		mounted() {
			this.bankCardInfo()
		},
		methods:{
			async bankCardInfo(){
				let res = await bankCardInfo();
				console.log(res)
				if(res.code == 200){
					this.yinhangInfo = res.data
				}
			}
		}
	}
</script>

<style>
</style>